<template>
  <div class="not-found">
    <div class="error-container">
      <div class="error-animation">
        <span class="error-digit">4</span>
        <div class="error-zero">
          <div class="error-circle"></div>
        </div>
        <span class="error-digit">4</span>
      </div>
      <h1 class="error-title">页面未找到</h1>
      <p class="error-message">您访问的页面不存在或已被移除</p>
      <router-link to="/" class="home-button">返回首页</router-link>
    </div>
  </div>
</template>

<script lang="ts" setup>
import { RouterLink } from 'vue-router'
</script>

<style lang="scss" scoped>
.not-found {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.error-container {
  text-align: center;
  padding: 2rem;
  max-width: 600px;
}

.error-animation {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
}

.error-digit {
  font-size: 8rem;
  font-weight: 700;
  color: #3f51b5;
}

.error-zero {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 1rem;
}

.error-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 10px solid #3f51b5;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.error-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.error-message {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

.home-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #3f51b5;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.home-button:hover {
  background-color: #303f9f;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}
</style>
